package com.ben.multiple.jsoup.entity;

import lombok.Data;

import java.io.Serializable;

@Data
public class Address implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String name;
    private String parentId;
    /**
     * 方便查询
     */
    private String provinceId;
    /**
     * 省 == 1；子级依次递增；；用 tinyint(2) 类型存储，查询效率更高
     */
    private String level;

    public Address() {
    }

    public Address(String id, String name, String parentId, String provinceId, String level) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.provinceId = provinceId;
        this.level = level;
    }
}
